package com.atgouwu.mall.search.vo;

import com.atgouwu.mall.common.es.SkuEsModel;
import lombok.Data;
import java.util.List;

//搜索结果
@Data
public class SearchResult {
    /**
     * 商品信息
     */
    private List<SkuEsModel> product;

    /**
     * 当前页码
     */
    private Integer pageNum;

    /**
     * 总记录数
     */
    private Long total;

    /**
     * 总页码
     */
    private Integer totalPages;

    /**
     * 面包屑页
     */
    private List<Integer> pageNavs;

    /**
     * 品牌信息
     */
    private List<BrandVo> brands;

    /**
     * 属性信息
     */
    private List<AttrVo> attrs;

    /**
     * 分类信息
     */
    private List<CatalogVo> catalogs;

    /**
     * 面包屑导航数据
     */
    private List<NavVo> navs;

    @Data
    public static class NavVo {
        private String navName;
        private String navValue;
        private String link;
    }

    //品牌信息
    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    //属性信息
    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    //分类信息
    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

}
